/*
 * @Date: 2022-04-21 14:56:15
 * @LastEditors: wuyuxin
 * @LastEditTime: 2022-04-29 09:39:20
 * @FilePath: \Vue3-ts-cms\src\base-ui\form\types\index.ts
 * @description: 文件描述
 */
type IFormType = 'input' | 'password' | 'select' | 'datepicker'

export interface IFormItem {
  type: IFormType
  label: string
  rules?: any[]
  prop: string
  isHidden?: boolean
  placeholder?: string
  options?: any[]
  otherOptions?: any
}

export interface IForm {
  formItems: IFormItem[]
  labelWidth?: string
  colLayout?: any
  itemStyle: any
}
